package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.Goods;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

/**
 * @author lifeng
 * @create 2022-11-18 11:42
 */
@Repository
public interface GoodsDao extends BaseMapper<Goods> {

    @Insert("insert into goods values(null,#{goodsName},#{goodsDetail},#{goodsPrice},#{goodsGrade},#{goodsInventory},#{isHot},#{createTime},#{updateTime},#{merchantId},#{buyNum},#{e_id})")
    void add(Goods goods);

}
